using Beauty.Net.MiniExcel.Core;
using Beauty.Net.MiniExcel.Core;
using Microsoft.Extensions.DependencyInjection;

namespace Beauty.Net.MiniExcel;

/// <summary>
/// MiniExcel服务依赖注入扩展
/// </summary>
public static class MiniExcelServiceCollectionExtensions
{
    /// <summary>
    /// 添加MiniExcel服务
    /// </summary>
    /// <param name="services">服务集合</param>
    /// <returns>服务集合</returns>
    public static IServiceCollection AddMiniExcel(this IServiceCollection services)
    {
        services.AddSingleton<IMiniExcelService, MiniExcelService>();
        return services;
    }
}